package com.settlement.system.model.entity.common;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
/**
 * RR-会计科目
 * @author xiaochuan
 * @since 2023-10-17
 */
@Data
@ExcelIgnoreUnannotated
@HeadStyle(fillBackgroundColor = 9,fillForegroundColor = 9)
@HeadRowHeight(value = 20)
@HeadFontStyle(fontHeightInPoints = 14)
public class TblRrAccountSubject extends BaseModel implements Serializable {


    /**
     * 账簿体系
     */
    @ColumnWidth(20)
    @ExcelProperty(value = "账簿体系")
    @ApiModelProperty(value = "账簿体系")
    @NotNull(message = "账簿体系不能为空")
    private String accountBookSystem;

    /**
     * 科目编号
     */
    @ColumnWidth(20)
    @ExcelProperty(value = "科目编号")
    @ApiModelProperty(value = "科目编号")
    private String subjectNo;

    /**
     * 科目名称
     */
    @ColumnWidth(20)
    @ExcelProperty(value = "科目名称")
    @ApiModelProperty(value = "科目名称")
    private String subjectName;

    /**
     * 辅助项
     */
    @ColumnWidth(20)
    @ExcelProperty(value = "辅助项")
    @ApiModelProperty(value = "辅助项")
    private String subItem;

    /**
     * 默认值
     */
    @ColumnWidth(20)
    @ExcelProperty(value = "默认值")
    @ApiModelProperty(value = "默认值")
    private String defaultValue;


    public String toUniqueString() {
        return "TblRrAccountSubject{" +
                "accountBookSystem='" + accountBookSystem + '\'' +
                ", subjectNo='" + subjectNo + '\'' +
                ", subItem='" + subItem + '\'' +
                '}';
    }
}
